package tobebetterjavaer;


import java.math.BigDecimal;

public class Fruit {
    /**
     * 种类
     */
    private String name;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 重量
     */
    private double weight;

    /**
     * 折扣
     */
    private String discount;

    public Fruit(String name, BigDecimal price, double weight, String discount) {
        this.name = name;
        this.price = price;
        this.weight = weight;
        this.discount = discount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }
}
